<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<%
    if (null == session.getAttribute("user")) {
        response.sendRedirect("login.jsp");
    }
%>
<body>
    <%@include  file="_common/header.jsp" %>
    <%@include  file="_common/col-left.jsp" %>

    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <div class="content-main">
            <div class="title-main">Courses List</div>
            <table cellspacing="0" cellpadding="0" class="mailbox">
                <tbody>
                    <tr>

                        <th class="action_section m_inputs_section">Courses ID</th>
                        <th class="action_section m_inputs_section">Courses Name</th>
                        <th class="action_section m_inputs_section">Description</th>
                        <th class="action_section m_inputs_section">Attachment</th>
                        <th class="action_section m_inputs_section">Date Start</th>
                        <th class="action_section m_inputs_section">Date End</th>
                        <th class="action_section m_inputs_section">View Class</th>
                    </tr>

                <tbody>
                    <logic:iterate id="coursesitem" name="Courses" property="courses">
                        <tr class="not_filled mailbox_row">
                            <td>${coursesitem.coursesId}</td>
                            <td>${coursesitem.coursesName}</td>
                            <td>${coursesitem.description}</td>
                            <td><a style="color:green" href="${coursesitem.attachment}">Download</a></td>
                            <td>${coursesitem.dateStart}</td>
                            <td>${coursesitem.dateEnd}</td>
                            <td><a href="coursesViewUser.do?coursesId=${coursesitem.coursesId}" style="color: green">View</a></td>
                        </tr>
                    </logic:iterate>
                </tbody>
            </table>

        </div>
    </div>


    <%@include file="_common/footer.jsp" %>

</body>
</html>


